Type.registerNamespace('ModWatch');

ModWatch.DropDownListModWatcherBehavior = function(element) { 
    ModWatch.DropDownListModWatcherBehavior.initializeBase(this, [element]);

    this._valueToCompare = '';
}

ModWatch.DropDownListModWatcherBehavior.prototype = {

	get_valueToCompare : function() {
		return this._valueToCompare;
	},

	set_valueToCompare : function(value) {
		if (!value || value == null)
			this._valueToCompare = '';
		else
			this._valueToCompare = value;
	},

	hasChanged : function() {
		var elem = this.get_element();
		if (!elem)
			return false;
		var selVal = elem.options[elem.selectedIndex].value;
		if (selVal != this._valueToCompare)
			return true;
		return false;
	}

}

ModWatch.DropDownListModWatcherBehavior.registerClass('ModWatch.DropDownListModWatcherBehavior', ModWatch.ModWatcherBehaviorBase);

if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();
